﻿using AutoMapper;
using S.Authorization.API.Application.Command.OrganizationCommand;
using S.Authorization.API.Application.Command.Role;

using S.Authorization.Domain.Model.Authority;
using S.Authorization.Domain.Model.Organization;

namespace S.Authorization.API.Extensions.AutoMapper
{
    public class SetProfile : Profile
    {
        public SetProfile()
        {
            //角色表添加
            CreateMap<RoleAddCommand, RoleModel>();
            //角色表修改
            CreateMap<RoleUpdateCommand, RoleModel>();
            //单位表添加
            CreateMap<BusinessModelCreateCommand, BusinessModel>();
            //部门表添加
            CreateMap<DepartmentCreateCommand, DepartmentModel>();
            //栋舍表添加
            CreateMap<ColumnManagementCreateCommand, ColumnManagementModel>();
            //羊场添加
            CreateMap<SheepFromCommand, SheepFarmsModel>();
           
            
        }
    }
}
